import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/vant.js'
import store from './store'

// 把接口挂载在全局上
import * as api from './api'
import objectPlugin from './plugins/objectPlugin'
// import mixins from './mixins'
Vue.prototype.$http = api

Vue.config.productionTip = false
// Vue.mixin(mixins)

Vue.use(objectPlugin)

// Vue.mixin({
//   methods: {
//     goDetail(url, id) {
//       this.$router.push(url + '/' + id)
//     }
//   }
// })

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
